Foxit PDF RDK
|
File stream interface, reading & writing. More...
Public Member Functions | |
Flush () | |
Flush internal buffer. More... | |
GetPosition () | |
Get the current reading position in stream. More... | |
GetSize () | |
Get the current stream size, in bytes. More... | |
IsEOF () | |
Determine whether reach the end of stream. More... | |
ReadBlock (offset, size) | |
Read a data block from stream. More... | |
Release () | |
Destroy the current instance. More... | |
Retain () | |
Create a shared instance. More... | |
WriteBlock (buffer, offset, size) | |
Write a block data into stream. More... | |
File stream interface, reading & writing.
FoxitRDKNative.StreamCallback.Flush | ( | ) |
Flush internal buffer.
FoxitRDKNative.StreamCallback.GetPosition | ( | ) |
Get the current reading position in stream.
FoxitRDKNative.StreamCallback.GetSize | ( | ) |
Get the current stream size, in bytes.
FoxitRDKNative.StreamCallback.IsEOF | ( | ) |
Determine whether reach the end of stream.
FoxitRDKNative.StreamCallback.ReadBlock | ( | offset | , |
size | |||
) |
Read a data block from stream.
[in,out] | buffer | Pointer to a buffer receiving data. |
[in] | offset | Byte offset from beginning of the file, the position to read data. |
[in] | size | Number of bytes to be read from stream. |
FoxitRDKNative.StreamCallback.Release | ( | ) |
Destroy the current instance.
FoxitRDKNative.StreamCallback.Retain | ( | ) |
Create a shared instance.
FoxitRDKNative.StreamCallback.WriteBlock | ( | buffer | , |
offset | , | ||
size | |||
) |
Write a block data into stream.
[in] | buffer | Pointer to the data block. |
[in] | offset | Byte offset from beginning of the file, the position to write data. |
[in] | size | The length in bytes of the buffer. |